//定义和用户相关的api

import { get, post } from "../util/http/requirest";
interface LoginData{
    username:string,
    password:string
}
export function login(data:LoginData){
    return post('/login',data)
}

export function menu(){
    return get('/menu')
}